export const CHANGETABBAR = "CHANGETABBAR";

export interface ChangeTabBarAction {
  type: typeof CHANGETABBAR;
  payload: number;
}

export const changeTabBar = (index: number): ChangeTabBarAction => {
  return {
    type: CHANGETABBAR,
    payload: index,
  };
};
